package com.bjpowernode.boss.mvc.models.pages;

public class PageInfo {
    private Long current;
    private Long totalPage;

    public PageInfo() {
        this.current = 1L;
        this.totalPage = 1L;
    }

    public PageInfo(Long current, Long totalPage) {
        this.current = current;

        this.totalPage = totalPage == 0 ? 1 : totalPage;
    }

    public Long getCurrent() {
        return current;
    }

    public Long getTotalPage() {
        return totalPage;
    }
}
